include(${QT_USE_FILE})
set(amarok_frontend_SRCS Plugin.cpp QFunctionWrapper.cpp QPlayerAdaptor.cpp QTrackListAdaptor.cpp QHelperThread.cpp)

set (AMAROK_FRONTEND_MOC_HEADERS QFunctionWrapper.h QPlayerAdaptor.h QTrackListAdaptor.h )
qt4_wrap_cpp (AMAROK_FRONTEND_MOC_OUTPUT ${AMAROK_FRONTEND_MOC_HEADERS})

add_library(amarok_frontend SHARED ${amarok_frontend_SRCS} ${AMAROK_FRONTEND_MOC_OUTPUT})
set_target_properties(amarok_frontend PROPERTIES PREFIX "" LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/src)
target_link_libraries(amarok_frontend ${QTDBUS_LIB})

install(TARGETS amarok_frontend LIBRARY DESTINATION ${pluginDirectory})
